package cn.wolfcode.firstblood.service.impl;

import cn.wolfcode.firstblood.service.ISeckillService;

import java.math.BigDecimal;

public class SeckillServiceImpl implements ISeckillService {
    @Override
    public void doSeckill(Long userId, Long seckillId) {
        // 如果用户是山爷，则秒杀成功
        if(userId.equals(1)){
            System.out.println("秒杀成功，您不需要支付任何费用");
        }else {
            System.out.println("秒杀失败，因为您不是山爷！");
        }
    }

    @Override
    public void incrMoney(Long id, BigDecimal money) {

    }

    @Override
    public void decrMoney(Long id, BigDecimal money) {
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
        System.out.println("1231231");
    }

    @Override
    public void changeMoney(Long id, BigDecimal money) {
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
        System.out.println("1234123");
    }

    @Override
    public void a() {

    }




    @Override
    public void b() {
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
    }

    @Override
    public void payOnline(Long seckillId) {
        System.out.println("在线支付");
    }


    private void cccc(){
        System.out.println("saSAsASVGERFGER");
        System.out.println("saSAsASVGERFGER");
        System.out.println("saSAsASVGERFGER");
        System.out.println("saSAsASVGERFGER");
        System.out.println("saSAsASVGERFGER");
        System.out.println("saSAsASVGERFGER");
        System.out.println("saSAsASVGERFGER");
    }

    @Override
    public void c() {
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
        System.out.println("12321");
    }

    @Override
    public void d() {

    }

    @Override
    public void e() {

    }

    @Override
    public void g() {

    }

    @Override
    public void f() {

    }


}
